﻿@{ 
    Page.Title = "NuGet Docs | Error";
    PageData["NoSearch"] = true;
}

<div class="error-show-code"></div>
<div class="error-page">
    <h1>Error: Oh no, we broke something!</h1>
    <p>You might be here because:</p>
    <ul>
        <li>There is an error on our server and the server is &quot;given her all she's got, captain.&quot; </li>
        <li>The system is down, the system is down, the system is down.</li>
        <li>Our name is smalls.</li>
    </ul>

    <p>We have logged the error and we will look into it, and make sure it doesn’t happen again. However if you keep 
    seeing this page please File a bug on <a href="http://nugetdocs.codeplex.com/WorkItem/Create">CodePlex</a> or better 
    yet fix the issue yourself by <a href="@Href("~/docs/Contribute/Contributing-to-NuGet-Documentation")">Contributing to NuGet Documentation</a>.</p>

    <h2 class="search">Search For Something Else</h2>
    <form action="" onsubmit="return submitQuery()">
        <input name="q" id="searchBoxInput" placeholder="Search Docs" />
        <input id="searchBoxSubmit" type="submit" value=" " />
    </form>

</div>

<script type="text/javascript">
    function submitQuery() {
        window.location =  "@Href("~/search")?q=" 
        + encodeURIComponent($("#searchBoxInput").val());
        return false;
    }
</script>